﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

/// <summary>
///ConfirmLinkListShow 的摘要说明
/// </summary>
public class ConfirmLinkListShow:IListColumns
{
	public ConfirmLinkListShow()
	{
		//
		//TODO: 在此处添加构造函数逻辑
		//
	}

    #region IListColumns 成员

    public System.Web.UI.WebControls.DataControlField GetListField(ConfigColumns col)
    {
        ConfirmLinkField field = new ConfirmLinkField();
        field.HeaderText = col.ListShowName;
        if (string.IsNullOrEmpty(col.ListShowLinkText))
        {
            field.DataTextField = col.ColumnName;            
        }
        else
        {
            field.Text = col.ListShowLinkText;
        }
        field.DataNavigateUrlFields = col.ListShowLinkBoundDataField.Split(',');
        field.DataNavigateUrlFormatString = col.ListShowLinkUrl;
        field.ConfirmText = col.ListShowConfirmText;
        field.DataTextFormatString = col.ListShowFormate;

        return field;
    }

    #endregion
}
